<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<link rel="stylesheet" href="layui/dist/css/layui.css"  media="all">
<script src="layui/dist/layui.js" charset="utf-8"></script>
</head>
<body>
 
<div id="test1"></div>
 
<script>
layui.use('laypage', function(){
  var laypage = layui.laypage;
  
  //执行一个laypage实例
  laypage.render({
    elem: 'test1' //注意，这里的 test1 是 ID，不用加 # 号
    ,count: 1000 //数据总数，从服务端得到
  });
});
</script>
</body>
</html>